class Feed::InstallItemAfterServiced < Feed
  
  validates :order_id,
    :order_item_id,
    :installation_id,
    :install_item_id,
    :furniture_logistic_stat_order_item_id,
    :presence => true  
  
  def code
    ActiveSupport::StringInquirer.new('after_serviced')
  end
  
  def short_desc
    "#{installation.installer.full_name}于#{installation.installed_on}<b>上门安装</b>【#{furniture_logistic_stat_order_item.furniture_logistic_stat.dept.name} => #{install_item.has_been_sent_to_installer_count}件】，其中#{install_item.installed_count}件<b>安装完毕</b>，#{install_item.after_serviced_count}件需<b>售后服务</b>"
  end
  
  def remark
    install_item.remark
  end
  
end